<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<script type="text/javascript">

    $(document).ready(function(){
        var entityManagement = new EntityManagement();
        entityManagement.entityName = "直播流扩展";
        entityManagement.entityPath = "/stream/liveStream";
        entityManagement.entityTable = "liveStreamTable";
        $("#"+entityManagement.entityTable).flexigrid({
            url : "/epg-web"+entityManagement.entityPath+'/list.action',
            dataType : 'json',
            height: "auto",
            title:"直播流扩展信息",
            customTitle:false,
            params:[{"name":"fatherId",value:${id}}],
            colModel: [
                {display: 'ID', name : 'id', width : 70, sortable : false, align: 'center', hide : false},
                {display: '直播频道ID', name : 'fatherId', width : 70, sortable : false, align : 'center'},
                {display: '流名称', name : 'streamName', width : 120, sortable : false, align : 'center'},
                {display: '默认码流', name : 'isDefault', width : 50, sortable : false, align : 'center'},
                {display: 'UUID', name : 'uuid', width : 200, sortable : false, align : 'center'},
                {display: 'CUTTER频道名', name : 'url', width : 300, sortable : false, align : 'center'},
                {display: '码流文件格式', name : 'formatType', width : 70, sortable : false, align : 'center'},
                {display: '直播流状态', name : 'status', width : 120, sortable : false, align : 'center'},
                {display: '创建时间', name : 'addTime', width : 150, sortable : false, align : 'center'},
                {display: '最后更新时间', name : 'updateTime', width : 150, sortable : false, align : 'center'},
                {display: '操作', name : 'operate', width : 150, sortable : false, align : 'center'}
            ],
            useRp: false,
            usepager: false

        });
    });
    function doing(fatherId, streamName, httpUrl) {
        var entityManagement = new EntityManagement();
        entityManagement.entityName = "直播流扩展";
        entityManagement.entityPath = "/stream/liveStream";
        entityManagement.entityTable = "liveStreamTable";
        jQuery.ajax({
            url:httpUrl,
            data:{fatherId:fatherId, streamName:streamName},
            type:"POST",
            success:function (data) {
                var ret = eval('(' + data + ')');
                var message = ret.message

                top.Boxy.alert(message, null, {title:"提示信息"});

                if (ret.code == 'A00000') {
                    entityManagement.refresh();
                }
            }
        })
    };


</script>